package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Bus {
    String line;
    String from, to;
    public Bus(){}
    public Bus(String l,String f,String t){
        this.line=l;
        this.from=f;
        this.to=t;
    }
    public void show() {
        System.out.println(line + "路公交车.票价两元");
        System.out.println("从" + from + "到" + to + ",准点发车");
    }
}
